module.exports = async (ctx, next) => {
  const responseHeader = 'Content-Type:application/json;charset=utf-8'
  ctx.set('Content-Type', responseHeader)
  ctx.set("Access-Control-Allow-Origin", "*");
  ctx.set("Access-Control-Methods", "OPTIONS,GET,POST,PUT,DELETE");
  await next()
}